<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html lang="en">
<head>
    <title>Document</title>
</head>
<body>
<center>
    <table>
        <tr>
            <th>ID</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年龄</th>
            <th>操作</th>
        </tr>
        <c:forEach var="i" items="${list}">
            <tr>
                <td>${i.id}</td>
                <td>${i.name}</td>
                <td>${i.sex}</td>
                <td>${i.age}</td>
                <td><a href="/delete?id=${i.id}">删除</a>
                    <a href="/update?id=${i.id}">修改</a>
                </td>
            </tr>
        </c:forEach>
    </table>
    <a href="data.jsp?url=insert">添加</a>
</center>
</body>
</html>